/*
** xmalloc.c for zappy in /home/morgan_t/Documents/svn-for-my-proj/zappy/server
** 
** Made by thomas morgant
** Login   <morgan_t@epitech.net>
** 
** Started on  Thu Jul 12 16:04:23 2012 thomas morgant
** Last update Thu Jul 12 16:05:00 2012 thomas morgant
*/

#include "common.h"

void    *xmalloc(size_t size)
{
  void  *str;

  if ((str = malloc(size)) == 0)
    {
      perror("malloc");
      exit(EXIT_FAILURE);
    }
  return (str);
}
